<template>
  <div class="g-form form">
    <div class="head">
      <div class="title">
        <h2>Liquidity</h2>
        <span>Add liquidity to receive LP tokens</span>
      </div>
      <div class="setting">
        <div class="g-clickable">
          <i class="iconfont icon-help"></i>
        </div>
      </div>
    </div>
    <ButtonBase
      label="Add liquidity"
      width="172px"
      @click="$emit('change', 'add')"
    />
    <LiquidityCard
      @add="$emit('change', 'add')"
      @remove="$emit('change', 'remove')"
    />
    <div class="tips">
      <div>
        <span>Don't see a pool you joined?</span>
        <i @click="$emit('change', 'import')">Import it</i>
      </div>
      <span>
        Or, if you staked your LP tokens in a farm, unstake them to see them
        here.
      </span>
    </div>
  </div>
</template>

<script>
import ButtonBase from "@/components/common/ButtonBase";
import LiquidityCard from "@/components/LiquidityCard";

export default {
  components: {
    ButtonBase,
    LiquidityCard,
  },
};
</script>

<style lang="scss" scoped>
.form {
  .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;

    .title {
      display: flex;
      flex-direction: column;
      h2 {
        font-size: 18px;
        line-height: 1;
        font-family: "Roboto Bold";
        color: var(--color);
        margin-bottom: 18px;
      }

      span {
        font-size: 15px;
        line-height: 1;
        font-family: "Roboto Regular";
        color: var(--color-content);
      }
    }

    .setting {
      display: flex;
      align-items: center;

      div {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 5px;
      }

      i {
        font-size: 30px;
        color: var(--color-content);
      }
    }
  }

  .tips {
    font-size: 14px;
    font-family: "Roboto Regular";
    margin-top: 20px;

    div {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin-bottom: 10px;
    }

    span {
      line-height: 1.3;
      color: var(--color-content);
    }

    i {
      color: var(--color-sky-blue);
      margin-left: 5px;
      cursor: pointer;
    }
  }
}
</style>
